package org.hb0712.sya.tools.database.config;

import java.util.HashMap;
import java.util.Map;

import org.hb0712.sya.tools.database.common.MyConnection;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
    @Bean(name = "dev")
    public MyConnection dev() {
        MyConnection conn = new MyConnection();
        conn.setJdbcUrl("jdbc:oracle:thin:@//localhost:1521/ServiceName");
        conn.setUsername("dev");
        conn.setPassword("password");
        conn.setHostname("hostname");
        conn.setPublicKeyStr("publicKey");
        conn.setPrivateKeyStr("privateKey");
        return conn;
    }
    
    @Bean(name = "prod")
    public MyConnection prod() {
        MyConnection conn = new MyConnection();
        conn.setJdbcUrl("jdbc:oracle:thin:@//localhost:1521/ServiceName");
        conn.setUsername("prod");
        conn.setPassword("password");
        conn.setHostname("hostname");
        conn.setPublicKeyStr("publicKey");
        conn.setPrivateKeyStr("privateKey");
        return conn;
    }
    
    @Bean(name = "tablenames")
    public Map<String, String[]> tablenames() {
        var map = new HashMap<String, String[]>();
        return map;
    }
    
    @Bean(name = "tablenames2")
    public Map<String, String[]> tablenames2() {
        var map = new HashMap<String, String[]>();
        return map;
    }
    
    @Bean(name = "tablenames3")
    public Map<String, String[]> tablenames3() {
        var map = new HashMap<String, String[]>();
        return map;
    }
    
    @Bean(name = "tablenames4")
    public Map<String, String[]> tablenames4() {
        var map = new HashMap<String, String[]>();
        return map;
    }
    
    @Bean(name = "tablenames6")
    public Map<String, String[]> tablenames6() {
        var map = new HashMap<String, String[]>();
        return map;
    }
}
